package com.VancouverTongue.bean;

import com.VancouverTongue.database.HelpObj;

public class Search {

	//
	public String name = "";
	public String city = "";
	public Integer categoryCode;

	public Search() {

	}

	public Search(String name, String city, Integer categoryCode) {
		this.name = name;
		this.city = city;
		this.categoryCode = categoryCode;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		if (name == null) {
			name = "";
		}
		this.name = name;
		this.name = HelpObj.HTMLcheck(name);
		this.name = HelpObj.checkString(this.name, 65);

	}

	public String getCity() {

		return city;
	}

	public void setCity(String city) {
		if (city == null) {
			city = "";
		}
		this.city = city;
		this.city = HelpObj.HTMLcheck(city);
		this.city = HelpObj.checkString(this.city, 20);
	}

	public Integer getCategoryCode() {
		return categoryCode;
	}

	public void setCategoryCode(Integer categoryCode) {
		if (categoryCode == null) {
			categoryCode = 0;
		}
		this.categoryCode = categoryCode;
	}
}
